package com.wilmer.papers.domain;

import java.math.BigDecimal;
import java.util.List;

import com.wilmer.question.domain.YwQuestion;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wilmer.common.annotation.Excel;
import com.wilmer.common.core.domain.BaseEntity;

/**
 * 试卷作业对象 yw_papers
 * 
 * @author zl
 * @date 2024-04-18
 */
public class YwPapers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long paperId;

    /** 添加老师（用户）id */
    private Long teacherId;

    /** 试卷的名称 */
    @Excel(name = "试卷的名称")
    private String nama;

    /** 试卷的总分值 */
    @Excel(name = "试卷的总分值")
    private BigDecimal totalScored;

    /** 完成试卷的时间限制（分钟） */
    @Excel(name = "完成试卷的时间限制")
    private Integer timeLimit;

    /** 课程id */
    @Excel(name = "课程id")
    private Long courseId;
    private String courseName;

    /** 试卷是否展示 */
    @Excel(name = "试卷是否展示")
    private String active;

    private List<YwPaperQuestions> paperQuestionsList;

    /** 试卷题 */
    private List<YwQuestion> questionList;

    public List<YwPaperQuestions> getPaperQuestionsList() {
        return paperQuestionsList;
    }

    public void setPaperQuestionsList(List<YwPaperQuestions> paperQuestionsList) {
        this.paperQuestionsList = paperQuestionsList;
    }

    public List<YwQuestion> getQuestionList() {
        return questionList;
    }

    public void setQuestionList(List<YwQuestion> questionList) {
        this.questionList = questionList;
    }
    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public void setPaperId(Long paperId)
    {
        this.paperId = paperId;
    }

    public Long getPaperId() 
    {
        return paperId;
    }
    public void setNama(String nama) 
    {
        this.nama = nama;
    }

    public String getNama() 
    {
        return nama;
    }
    public void setTotalScored(BigDecimal totalScored) 
    {
        this.totalScored = totalScored;
    }

    public BigDecimal getTotalScored() 
    {
        return totalScored;
    }
    public void setTimeLimit(Integer timeLimit) 
    {
        this.timeLimit = timeLimit;
    }

    public Integer getTimeLimit() 
    {
        return timeLimit;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setActive(String active) 
    {
        this.active = active;
    }

    public String getActive() 
    {
        return active;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("paperId", getPaperId())
            .append("nama", getNama())
            .append("totalScored", getTotalScored())
            .append("timeLimit", getTimeLimit())
            .append("courseId", getCourseId())
            .append("active", getActive())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
